<?php

/* 
 * EachGo电商网站 新媒体
 * www.eachgo.cn
 */
namespace Home\Model;
use Think\Model;
class GoodsTypeModel extends Model{    
    /*添加分享*/
    public function addType($data){
        return $this->add($data);
    }
    /*删除分享*/
    public function deleteType($id){
        return $this->where("ID=".$id)->delete();
    }
    public function queryAll(){
        return $this->select();
    }
    public function update($data){
        return $this->where("ID=".$data['id'])->save($data);
    }
}
